/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.pay.rpc.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author Henry 杨勇 (孤竹行) 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-11-05
 * @version 1.0
 * @since 1.0
 */
public class PayInOrderCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static PayInOrderCriteria create() {
		return new PayInOrderCriteria();
	}
	
	public static PayInOrderCriteria create(Column column) {
		PayInOrderCriteria that = new PayInOrderCriteria();
		that.add(column);
        return that;
    }

    public static PayInOrderCriteria create(String name, Object value) {
        return (PayInOrderCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("pay_in_order", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public PayInOrderCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public PayInOrderCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public PayInOrderCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public PayInOrderCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public PayInOrderCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayInOrderCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public PayInOrderCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayInOrderCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public PayInOrderCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public PayInOrderCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public PayInOrderCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public PayInOrderCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public PayInOrderCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public PayInOrderCriteria andPayInOrderIdIsNull() {
		isnull("pay_in_order_id");
		return this;
	}
	
	public PayInOrderCriteria andPayInOrderIdIsNotNull() {
		notNull("pay_in_order_id");
		return this;
	}
	
	public PayInOrderCriteria andPayInOrderIdIsEmpty() {
		empty("pay_in_order_id");
		return this;
	}

	public PayInOrderCriteria andPayInOrderIdIsNotEmpty() {
		notEmpty("pay_in_order_id");
		return this;
	}
       public PayInOrderCriteria andPayInOrderIdEqualTo(java.lang.Long value) {
          addCriterion("pay_in_order_id", value, ConditionMode.EQUAL, "payInOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayInOrderCriteria andPayInOrderIdNotEqualTo(java.lang.Long value) {
          addCriterion("pay_in_order_id", value, ConditionMode.NOT_EQUAL, "payInOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayInOrderCriteria andPayInOrderIdGreaterThan(java.lang.Long value) {
          addCriterion("pay_in_order_id", value, ConditionMode.GREATER_THEN, "payInOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayInOrderCriteria andPayInOrderIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("pay_in_order_id", value, ConditionMode.GREATER_EQUAL, "payInOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayInOrderCriteria andPayInOrderIdLessThan(java.lang.Long value) {
          addCriterion("pay_in_order_id", value, ConditionMode.LESS_THEN, "payInOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayInOrderCriteria andPayInOrderIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("pay_in_order_id", value, ConditionMode.LESS_EQUAL, "payInOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayInOrderCriteria andPayInOrderIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("pay_in_order_id", value1, value2, ConditionMode.BETWEEN, "payInOrderId", "java.lang.Long", "Float");
    	  return this;
      }

      public PayInOrderCriteria andPayInOrderIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("pay_in_order_id", value1, value2, ConditionMode.NOT_BETWEEN, "payInOrderId", "java.lang.Long", "Float");
          return this;
      }
        
      public PayInOrderCriteria andPayInOrderIdIn(List<java.lang.Long> values) {
          addCriterion("pay_in_order_id", values, ConditionMode.IN, "payInOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayInOrderCriteria andPayInOrderIdNotIn(List<java.lang.Long> values) {
          addCriterion("pay_in_order_id", values, ConditionMode.NOT_IN, "payInOrderId", "java.lang.Long", "Float");
          return this;
      }
	public PayInOrderCriteria andPayVendorIdIsNull() {
		isnull("pay_vendor_id");
		return this;
	}
	
	public PayInOrderCriteria andPayVendorIdIsNotNull() {
		notNull("pay_vendor_id");
		return this;
	}
	
	public PayInOrderCriteria andPayVendorIdIsEmpty() {
		empty("pay_vendor_id");
		return this;
	}

	public PayInOrderCriteria andPayVendorIdIsNotEmpty() {
		notEmpty("pay_vendor_id");
		return this;
	}
       public PayInOrderCriteria andPayVendorIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayVendorIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.NOT_EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayVendorIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.GREATER_THEN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayVendorIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.GREATER_EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayVendorIdLessThan(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.LESS_THEN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayVendorIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.LESS_EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayVendorIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_vendor_id", value1, value2, ConditionMode.BETWEEN, "payVendorId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayInOrderCriteria andPayVendorIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_vendor_id", value1, value2, ConditionMode.NOT_BETWEEN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayInOrderCriteria andPayVendorIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_vendor_id", values, ConditionMode.IN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayVendorIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_vendor_id", values, ConditionMode.NOT_IN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }
	public PayInOrderCriteria andPayMchIdIsNull() {
		isnull("pay_mch_id");
		return this;
	}
	
	public PayInOrderCriteria andPayMchIdIsNotNull() {
		notNull("pay_mch_id");
		return this;
	}
	
	public PayInOrderCriteria andPayMchIdIsEmpty() {
		empty("pay_mch_id");
		return this;
	}

	public PayInOrderCriteria andPayMchIdIsNotEmpty() {
		notEmpty("pay_mch_id");
		return this;
	}
       public PayInOrderCriteria andPayMchIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayMchIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.NOT_EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayMchIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.GREATER_THEN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayMchIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.GREATER_EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayMchIdLessThan(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.LESS_THEN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayMchIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.LESS_EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayMchIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_mch_id", value1, value2, ConditionMode.BETWEEN, "payMchId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayInOrderCriteria andPayMchIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_mch_id", value1, value2, ConditionMode.NOT_BETWEEN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayInOrderCriteria andPayMchIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_mch_id", values, ConditionMode.IN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andPayMchIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_mch_id", values, ConditionMode.NOT_IN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }
	public PayInOrderCriteria andAmountIsNull() {
		isnull("amount");
		return this;
	}
	
	public PayInOrderCriteria andAmountIsNotNull() {
		notNull("amount");
		return this;
	}
	
	public PayInOrderCriteria andAmountIsEmpty() {
		empty("amount");
		return this;
	}

	public PayInOrderCriteria andAmountIsNotEmpty() {
		notEmpty("amount");
		return this;
	}
       public PayInOrderCriteria andAmountEqualTo(java.math.BigDecimal value) {
          addCriterion("amount", value, ConditionMode.EQUAL, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayInOrderCriteria andAmountNotEqualTo(java.math.BigDecimal value) {
          addCriterion("amount", value, ConditionMode.NOT_EQUAL, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayInOrderCriteria andAmountGreaterThan(java.math.BigDecimal value) {
          addCriterion("amount", value, ConditionMode.GREATER_THEN, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayInOrderCriteria andAmountGreaterThanOrEqualTo(java.math.BigDecimal value) {
          addCriterion("amount", value, ConditionMode.GREATER_EQUAL, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayInOrderCriteria andAmountLessThan(java.math.BigDecimal value) {
          addCriterion("amount", value, ConditionMode.LESS_THEN, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayInOrderCriteria andAmountLessThanOrEqualTo(java.math.BigDecimal value) {
          addCriterion("amount", value, ConditionMode.LESS_EQUAL, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayInOrderCriteria andAmountBetween(java.math.BigDecimal value1, java.math.BigDecimal value2) {
    	  addCriterion("amount", value1, value2, ConditionMode.BETWEEN, "amount", "java.math.BigDecimal", "Float");
    	  return this;
      }

      public PayInOrderCriteria andAmountNotBetween(java.math.BigDecimal value1, java.math.BigDecimal value2) {
          addCriterion("amount", value1, value2, ConditionMode.NOT_BETWEEN, "amount", "java.math.BigDecimal", "Float");
          return this;
      }
        
      public PayInOrderCriteria andAmountIn(List<java.math.BigDecimal> values) {
          addCriterion("amount", values, ConditionMode.IN, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayInOrderCriteria andAmountNotIn(List<java.math.BigDecimal> values) {
          addCriterion("amount", values, ConditionMode.NOT_IN, "amount", "java.math.BigDecimal", "Float");
          return this;
      }
	public PayInOrderCriteria andStatusIsNull() {
		isnull("status");
		return this;
	}
	
	public PayInOrderCriteria andStatusIsNotNull() {
		notNull("status");
		return this;
	}
	
	public PayInOrderCriteria andStatusIsEmpty() {
		empty("status");
		return this;
	}

	public PayInOrderCriteria andStatusIsNotEmpty() {
		notEmpty("status");
		return this;
	}
       public PayInOrderCriteria andStatusEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andStatusNotEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.NOT_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andStatusGreaterThan(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.GREATER_THEN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andStatusGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.GREATER_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andStatusLessThan(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.LESS_THEN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andStatusLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.LESS_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andStatusBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("status", value1, value2, ConditionMode.BETWEEN, "status", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayInOrderCriteria andStatusNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("status", value1, value2, ConditionMode.NOT_BETWEEN, "status", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayInOrderCriteria andStatusIn(List<java.lang.Integer> values) {
          addCriterion("status", values, ConditionMode.IN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayInOrderCriteria andStatusNotIn(List<java.lang.Integer> values) {
          addCriterion("status", values, ConditionMode.NOT_IN, "status", "java.lang.Integer", "Float");
          return this;
      }
	public PayInOrderCriteria andCtimeIsNull() {
		isnull("ctime");
		return this;
	}
	
	public PayInOrderCriteria andCtimeIsNotNull() {
		notNull("ctime");
		return this;
	}
	
	public PayInOrderCriteria andCtimeIsEmpty() {
		empty("ctime");
		return this;
	}

	public PayInOrderCriteria andCtimeIsNotEmpty() {
		notEmpty("ctime");
		return this;
	}
       public PayInOrderCriteria andCtimeEqualTo(java.math.BigInteger value) {
          addCriterion("ctime", value, ConditionMode.EQUAL, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayInOrderCriteria andCtimeNotEqualTo(java.math.BigInteger value) {
          addCriterion("ctime", value, ConditionMode.NOT_EQUAL, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayInOrderCriteria andCtimeGreaterThan(java.math.BigInteger value) {
          addCriterion("ctime", value, ConditionMode.GREATER_THEN, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayInOrderCriteria andCtimeGreaterThanOrEqualTo(java.math.BigInteger value) {
          addCriterion("ctime", value, ConditionMode.GREATER_EQUAL, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayInOrderCriteria andCtimeLessThan(java.math.BigInteger value) {
          addCriterion("ctime", value, ConditionMode.LESS_THEN, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayInOrderCriteria andCtimeLessThanOrEqualTo(java.math.BigInteger value) {
          addCriterion("ctime", value, ConditionMode.LESS_EQUAL, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayInOrderCriteria andCtimeBetween(java.math.BigInteger value1, java.math.BigInteger value2) {
    	  addCriterion("ctime", value1, value2, ConditionMode.BETWEEN, "ctime", "java.math.BigInteger", "String");
    	  return this;
      }

      public PayInOrderCriteria andCtimeNotBetween(java.math.BigInteger value1, java.math.BigInteger value2) {
          addCriterion("ctime", value1, value2, ConditionMode.NOT_BETWEEN, "ctime", "java.math.BigInteger", "String");
          return this;
      }
        
      public PayInOrderCriteria andCtimeIn(List<java.math.BigInteger> values) {
          addCriterion("ctime", values, ConditionMode.IN, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayInOrderCriteria andCtimeNotIn(List<java.math.BigInteger> values) {
          addCriterion("ctime", values, ConditionMode.NOT_IN, "ctime", "java.math.BigInteger", "String");
          return this;
      }
}